﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Colorful.Models
{
    /// <summary>
    /// 网站设置
    /// </summary>
    public partial class WebSetting : BaseLongId
    {
        #region 网站参数
        /// <summary>
        /// 网站名称
        /// </summary>
        public string SiteName { get; set; }
        /// <summary>
        /// 首页标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 页面标题显示方式
        /// </summary>
        public PageTitleShowType PageTitleShowType { get; set; }
        /// <summary>
        /// 网站关键字
        /// </summary>
        public string Keyword { get; set; }
        /// <summary>
        /// 网站描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 页脚
        /// </summary>
        public string Footer { get; set; }
        #endregion

        #region 网站设置
        /// <summary>
        /// 上传文件限制大小(单位：MB）
        /// </summary>
        public int MaxFileSize { get; set; }
        /// <summary>
        /// 文件扩展白名单
        /// </summary>
        public List<string> WhiteFileExtensions { get; set; }

        /// <summary>
        /// 是否关闭网站
        /// </summary>
        public bool CloseSite { get; set; }
        /// <summary>
        /// 网站关闭提示内容
        /// </summary>
        public string CloseContent { get; set; }
        /// <summary>
        /// 网站关闭提示内容（英文）
        /// </summary>
        public string CloseContentEn { get; set; }
        /// <summary>
        /// 要阻止的IP列表
        /// </summary>
        public List<string> BlockList { get; set; }

        /// <summary>
        /// 是否开启网站统计
        /// </summary>
        public bool EnableSiteStatistic { get; set; }
        /// <summary>
        /// 是否开启网站错误日志数据库记录
        /// </summary>
        public bool EnableErrorLog { get; set; }
        /// <summary>
        /// 网站统计代码
        /// </summary>
        public string StatisticScript { get; set; }
        /// <summary>
        /// 网站页脚代码
        /// </summary>
        public string Scripts { get; set; }
        #endregion

        #region 日志保留时间
        /// <summary>
        /// 统计数据保留时间
        /// </summary>
        public int StatisticSaveTime { get; set; }
        /// <summary>
        /// 登陆日志保留时间
        /// </summary>
        public int LoginLogSaveTime { get; set; }
        /// <summary>
        /// 错误日志保留时间
        /// </summary>
        public int ErrorLogSaveTime { get; set; }
        #endregion

        #region 系统参数
        /// <summary>
        /// 网站Key
        /// </summary>
        public string AppKey { get; set; }
        /// <summary>
        /// 网站密钥
        /// </summary>
        public string AppSecret { get; set; }
        /// <summary>
        /// 绑定域名
        /// </summary>
        public List<string> BindDomains { get; set; }
        /// <summary>
        /// 数据默认缓存时间
        /// </summary>
        public int DataCacheTime { get; set; }
        /// <summary>
        /// 后台标题
        /// </summary>
        public string AdminTitle { get; set; }
        /// <summary>
        /// 后台小标题
        /// </summary>
        public string AdminSubTitle { get; set; }
        /// <summary>
        /// 网站备份下载路径
        /// </summary>
        public string AdminBackupPath { get; set; }
        /// <summary>
        /// 网站需要备份的文件夹
        /// </summary>
        public List<string> AdminBackupFolders { get; set; }
        /// <summary>
        /// 最多备份数量
        /// </summary>
        public int BackupLimit { get; set; }
        #endregion
    }
}